Remove unused, broken, redundant and undocumented option xm create -L.
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 20 Mar 2006 08:56:46 +0000 (09:56 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 20 Mar 2006 08:56:46 +0000 (09:56 +0100)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xm/create.py

index 7546674ddd11cb086accb8fcfbfb27d75934c046..e52710774e4664e3e89e4435f4bd2419ccef8531 100644 (file)
@@ -91,10 +91,6 @@ gopts.opt('config', short='F', val='FILE',
           SXP configurations can be hand-written or generated from Python configuration
           scripts, using the -n (dryrun) option to print the configuration.""")
 
-gopts.opt('load', short='L', val='FILE',
-          fn=set_value, default=None,
-          use='Domain saved state to load.')
-
 gopts.opt('dryrun', short='n',
           fn=set_true, default=0,
           use="""Dry run - print the configuration but don't create the domain.
@@ -819,11 +815,7 @@ def make_domain(opts, config):
     """
 
     try:
-        if opts.vals.load:
-            filename = os.path.abspath(opts.vals.load)
-            dominfo = server.xend_domain_restore(filename, config)
-        else:
-            dominfo = server.xend_domain_create(config)
+        dominfo = server.xend_domain_create(config)
     except XendError, ex:
         import signal
         if vncpid: